<?php


namespace app\cms\tags;


use app\cms\model\companyModel;
use app\cms\model\siteModel;

class config {

    public function getConfig(): array {

        $config = companyModel::getCompanyInfo() -> data['items'];
        if ($config) {
            $config['site_status'] = $config['status'];
            unset($config['status']);
        }

        return array_merge(siteModel::getSiteInfo() -> data['items'], $config);
    }

}